package cn.com.yx.ms.persistence;

import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.dbmodel.GgCatalog;
import cn.com.yx.ms.domain.program.CatalogFileModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GgCatalogMapper {
    int deleteByPrimaryKey(String guid);

    int insert(GgCatalog record);

    int insertSelective(GgCatalog record);

    GgCatalog selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(GgCatalog record);

    int updateByPrimaryKey(GgCatalog record);


    String getMaxNumber(@Param("parentid") String parentid);

    List<GgCatalog> find(ApiQueryBase query);

    int selectCountByGgCatalogName(@Param("parentid") String parentid, @Param("catalogname") String catalogname);

    List<GgCatalog> selectChildByParentId(@Param("parentid") String parentid);

    List<CatalogFileModel> findCatalogFile();


}